package com.graduate.examapp.model

import com.graduate.examapp.entity.LoginData
import com.graduate.examapp.entity.LoginParam
import com.graduate.examapp.request.*

/**
 * Author: etacao
 * Date: 2023/4/13 11:00
 * Description:
 * History:
 * <author> <time> <version> <desc>
 * etacao 2023/4/13 1.0 首次创建
 */
class LoginRepository {

    private val serviceEndpoint = RetrofitRequest.getService()

    suspend fun login(loginParam: LoginParam): Response<LoginData> {
        return serviceEndpoint.login(loginParam)
    }
}